Added factories to REST and RPC services
Merge pull request #153 from ezimuel/feature/factories

Added factories to REST and RPC services
[#153] Minor changes to generated output

- Ensure a newline occurs between class declaration and opening paren (closing
  ?> tag does not result in a newline; know PHP issue)
- Name argument to controller factory `$controllers` to make it easier to
  determine that the argument is the controller manager, not the service
  manager.
[#153] CS fixes (indentiation, trailing whitespace)
Merge branch 'feature/153'

Close #153