Feature/api

My API branch is now in sync with master and has endpoints for basic pages and templates (just create and index)