adapted to latest headless branch on CGFramework
Merge branch 'develop' of https://github.com/wydler/CGFramework-RESTful into develop