Add user lookup and login endpoints

Separate endpoint registration to a separate file
Implement handshake endpoint