added JAX-RS API and Gson (JSON processor)