refactoring service generation to support self-contained services see #39.
Merge pull request #47 from npm/self-contained-service

support embedding services inside regular packages