Refactored frontpage view for better error reporting
* Now using Flask message flashing for errors
* Refactored tests accordingly
* Added message handling to frontpage template