Added rack rewrite
Added initializer for rack rewrite
Add /api to controller path
User /api path in resources