Add ability to search and sort gadgets. Add 
tests for searching capability.