remove phase and refactor motion close_at

fixes #569
Merge pull request #858 from loomio/refactor/remove-phase-and-fix-close-date-issue

Remove phase from motion and fix close date issue