Added Basic Authorisation handeling to all http_* methods

Cleaned up stringx.h, added base64_encode and base64_decode to stringx.h