Added connection and tests - only in as I'd done it for resources before realising it should be in connections
Changed how the logger handler error objects
Moved the name generator out of Resource
Made httpstore domain required
Added setinstanceof
Added getall resources function