New select procedure and Authenticate class

In the domain logic
Merge branch 'Authenticate' of https://github.com/warreq/EasyTeach into socket
I moved things