A better way to scale app

A better scaling system. We only do resizing once, on application init.
Merge pull request #1 from it-s/cache

A better way to scale app