refactors Discourse.Model to bind context to self plus some minor clean-ups
Merge pull request #1510 from velesin/model_refactoring

refactors Discourse.Model