fix spelling mistake and make host and port configurable

Made some changes to move to port and host a config setting instead of hard coded. This enables the use of the rest interface on localhost only for monitoring purposes.