Initial work on swagger
Added some fixes to make it work with the codegen
Multiple REST endpoints (one per version)
Merge pull request #1527 from nelsonsilva/swagger

Initial work on new swagger based REST API