Implement model cache. Adds REDMINE-18

Everything is insanely fast now!
Merge branch 'master' of https://github.com/AmberProject/Amber-IDE