use UriBuilder from javax.ws.rs.core

fixed #281
properly escape query parameters
Merge git://github.com/Graylog2/graylog2-web-interface into develop