added controller, model for api and apilog, added helper and layout