Major changes on  API and Unit Test

On API:
-----------
* Set Configuration by Environments
* Parsing data from request body refactored
* Allow OPTIONS request by returning 200
* Setting CORS header whitelist
* Spread model classes into separate files

On Tests:
--------------
* Fix calling v1 API resources
* Add classes to tests