Content negociate

This is the fix for issue #15. Please drop the pom.xml changes.