minor bugfix: don't assume that the query results for queryFirstRow() or queryFirstList() will be an array (can also be a bool)
clean up static class init syntax a bit
ssl support (still untested)