Big Update

Cleaned up a lot of classes: cleaned up Router, cleaned up Core, added
inheritance to all Lib classes, added Str class for string functions,
sorted some functions to appropriate classes, added login/logout
functionality.