Started implementing the new StateHandler. Adresses #42 and #51.
Finished own StateHandler implementation. Closes #51, Closes #42.