Numerous debugging changes, fix write strlen, add user store/load (broken).