setup API routes and models closes #8 closes #9