auth; Refactor and Optimize by littlemousy

auth in the upstream currently has 9,592 bytes free on start-up; after
refactor and optimization we have 17,134 bytes free on start-up; that's
a difference of 7,542 bytes more memory available
Merge pull request #278 from VirtualDisgrace/raspberrytarzan

auth; Refactor and Optimize by littlemousy