Add user agent to header and configurable browser choice. fix a few type bugs. add more debugging.
0.4.3