Introduced routing, moved frontpage html into a partial view and moved logic into separate main controller file.