Added helpers, more unit tests.
Got username/pass login somewhat working.