First swing at long-term authentication working
Add features to make server more useful as a library

Add respond bind and put commonly used variables in connection

Also, simplify attribute functions
remove excessive logging and fix xor