fixed includes
added http auth

* added curl header
* added auth handling
* fixed example.php