API Change

Change API to create the rest services with mongoose and express on the
fly
Now using grunt for jshint, test run etc
Added more test cases