Several improvements.

Added flash messages system.
Begin bussines logic.
Some changes in models.