replace Engine.addPerk calls with StateManager calls
replace Engine.hasPerk with StateManager calls
replace Engine.setStore with StateManager calls
replace Engine.setStores with StateManager calls
replace Engine.addStore with StateManager calls
replace Engine.addStore with StateManager calls (for real)
replace Engine.addStores with StateManager calls + related changes

remove change from collectIncome
add Events update handler
improve StateManager functions
replace Engine.getStore and storeAvailable with StateManager calls

change ship and compass check in Engine.init to look for
stores.compass > 0
features.ship != null

other compass checks also look in stores
upgrade checks look in features

add requestZero option to StateManager.getState
removed Engine.getStore, storeAvailable