A login and session server for Cubed