add missing PY3 import for httplib
bugfix, hostname -> agent_hostname.  Remove 'ip'
couple of bugfixes, creating standard test methods for http/api views
initial tests for http.system