Added support for authentication via cURL. Also fixed boolean attribute parsing (attributes with no values)