Added instance and class methods to models
Merge branch 'master' of github.com:phonga/framework