Created initial JSON API
Added initial API requests (index, create)