restructure repositories, add controller, implement basic login functionality