Extract alert message processing into base class.

+ Refactor response text parsing.
+ Immediately hide former messages on form submit.
Extract key press handler into base class.
Merge branch 'refactor-item-views' into prototype