use angular http and q instead of jquery on elastic client
wrapped elastic client into a service
added few tests for global controller
fixes index unhealthy state flag