Merge pull request #399 from picatic/writable-files

Made some Model methods defined by `defineProperty` writable so they can be mocked
Merge remote-tracking branch 'orm2/master'