WIP - refactoring param handling code
cleaning up param permissions and fixing migration
Merge pull request #75 from epantry/params-refactor

Params refactor