SQ into pypiserver
factored out authenticate function; improved global CLI error handling
imported Apprentice Alf's dedrm code
SQ into 4f0eb14
better handling of OGRE server hostname