Another piece of big update. Fixes mostly, some improvements, added
functionality for easy state cacheing, implemented smart loader for
state batches, some fade stuff etc