Separation of concerns. 

Move api mapping to the HTTP module and the request actions to RESTActions module.

This PR helps to organize the code and make these two issues separated:

* #35 and #32 


:+1: