turn app into json api and get ready for ember