Riemann resmon improvements

I've added some handling for http error codes. Also added timeouts to the http connection, and the ability to configure them.

Finally just a bit of cleanup of the script.