RESTEASY-1077 Trailing slash

Add test for trailing slashes that fails for resteasy
Refactor contructors in ResteasyUriInfo to check trailing and leding slashes