Adds session states.

You can save/load sessions with the core saveSession and loadSession methods, they take the path to a save folder as a parameter without a trailing '/' and the position is relative to the executable's location.
Also there's quite a lot of error checks to add.

May be buggy right now.
Report every bug you find, please.