repackaging: network.auth subpackage
code cleanup
json auth response
refactoring: Map returned as authentication result
changed debug print call location