Started working on registration logic.
Cleaned up some naming.
Finished session registration.