WIP deposit: separation of typeahead initialization

* Separates connecting events and initializing typeahead so that
  one can set up a custom typeahead with all the events connected
  with the form.

Signed-off-by: Kamil Neczaj <kamil.neczaj@cern.ch>
Co-authored-by: Javier Martin Montull <javier.martin.montull@cern.ch>