code cleaning
- added count parameter for searchExternalIdentifiers
- using request to get parameters
- killed some evil globals
- data search performed only when user click "search" (not on page load)

Change-Id: I3ab5e7bcd0464b5982393761014fd7d0cc02169b