first commit with code from Jersey project. Huge Refactor to make it work with RestEasy