[#CSM-55 Automatically update search results without clicking "search"]

https://issues.openmrs.org/browse/CSM-55 | worked on updating category filter on every searching and keeping checked categories checked after a search with ajax