Add backtrace to logs
Fix basic auth call
Fix library to be an object (#44)