Added support for blocks and auto session handling

Creating a login object, managing that is just too much work. This makes it all simple, the session takes care of it all