avoid scientific notation for large doubles

I apologize in advance, this code really needs cleanup.

fixes #503
allow all integers in message count alert condition

fixes #517
Merge git://github.com/Graylog2/graylog2-web-interface into develop