Medium fixes

Fixes #45
Fixes #31 (saves state as long as session, which maybe a bit long, but
not bad)
Fixes #37
Fixes #52 (will only work on server though) (also config file needs to
be updated for that)