Application_controller with function which allow authenticates client.
Changed redirection after login and logout.
Added before_filter to authenticate user.
Added flash message to login view.
Deleted link which creates new client.
Added flash message into index of documents view.