Remove application events related code from application storage

SSIA. This code is not used since we dropped Main document support.
Merge pull request #2030 from pozdnyakov/remove_events_from_accounts_db

Remove application events related code from application storage