Merge pull request #3 from herriojr/master

Fixed issue where asking for a topic which doesn't exist was returning http instead of returning empty (and returning an error code).
Fixed namenode regex to be compatible with hostnames and ip addresses.

It is designed after the regex described on stack overflow for such a
problem: http://stackoverflow.com/a/106223/1477510