fix delegation of main model in AM.
Merge branch 'master' of github.com:apotonick/reform