Clean up form code.
Clean up form code.

Remove unused code and refactor the existing structure to make it
more apparent what is used where and to reduce the clutter.

rhyolight/nupic.son,rhyolight/nupic.son,rhyolight/nupic.son