Use indexes for lists of modules, companies and users

* Pass record ids from record_filter decorator
* Use record ids to get list of modules, companies and users in
  corresponding drop-downs
* Introduce query filter decorator and use it in drop-down methods

Change-Id: I5fe0e0541162ee57ea423ac5b3aed22c40e2217e
Merge "Use indexes for lists of modules, companies and users"