State manager for JS applications (especially games).