Re-format code. #141
Fix some missing includes from reformatting
Fix backspace-on-auth problem by creating tabs later, fixes #128