use entity manager inside jboss to create test data

Made test data creation code as a REST service. Using war overlay to bundle it with zanata war.
This will help
- ensure second level cache and lucene search index correctness
- less overhead of maintaining separate copy of persistence.xml
- tests are much more stable due to point one