Interaction with database moved from controllers to repositories.
Improvements on home page.
Merge remote-tracking branch 'origin/master'