no love for single letter vars

unless in loops
log error in catch block
adds object factories
[wip] adds api tests
comments
change config property 'protocol' to 'https'
[feature] adds ssl support
display registry info according to spec
no love for single letter vars
tidy up