[WIP] Major refactoring

Hashes, fixes from the new Stylus, `+cache` etc.