initial tool with minimal testing
set auth header
php 5.3 compat + bug fixes and status output