Refactor handlers

-- Rename to api
-- Setup basic framework for REST api to be filled in later