Might add HTTPS support, and a simple client. Added namespace and some restructuring preparing for HTTPS especially.