initial JAX-RS support
better handling of recursion and parameterized types