Modified elasticsearch by adding categories and nodes. #6492

* Refactored tests to properly clear elastic server resources.
* Modified Makefile to include elasticsearch plugins.