Split of example service-main section into smaller ones (#1912)
Split of example service-main section into smaller ones (#1912)

* Changes to enable access to service internals from auth funcs

* Service tests fixed to support auth funcs changes

* Examples updated to support auth funcs changes

* Fixed generated auth comments and examples

* Update codegen/service/endpoint.go

Co-Authored-By: difengo <5231082d091a18b9d6b50c40d8da708c7e3fb3f5@users.noreply.github.com>

* Update codegen/service/service.go

Co-Authored-By: difengo <5231082d091a18b9d6b50c40d8da708c7e3fb3f5@users.noreply.github.com>

* Update codegen/service/service.go

Co-Authored-By: difengo <5231082d091a18b9d6b50c40d8da708c7e3fb3f5@users.noreply.github.com>

* authenticated interface renamed to Auther, made public and commented

* Change of Auther interface comments

* Split of main section into smaller ones

goadesign/goa,raphael/goa