changed to jax-rs annotations for services
removed tmp file
converted old servlet services to jax-rs