Refactor a bit and add some tests.
More tests.
Add model support for dyn_variable attribute.
Add form support for dyn_variable attribute.
Merge pull request #2 from praekelt/feature/more-configurable-dyn-variable

More configurable dyn_variable functionality.