Build cleanup

* Fixes phpdoc generating
* Refactored travis run_elasticsearch.sh
* Added composer target to build.xml