Changing initialization order to support input pause/resume and prevent
faulty metric registration

Fixes #636
Merge branch 'master' of github.com:Graylog2/graylog2-server