moved code from Router to controllers
added factory method for Application, created task for helper methods (fill in DB with dummy data)