Added support for stateSave using Thymeleaf
Closes dandelion/issues#205
Refactored all API due to the recent Dandelion internal renaming