testability and clarity improvements

- use Cache in public/index.php (demo purposes)
- change Cache to instance-based
- complete revise of the wierd rain stuff