fix unescaped '+' in query params

fixes #223
ported Api tests to new class
use correct error message
Merge git://github.com/Graylog2/graylog2-web-interface into develop