Allow Stateful subclass to override default constructor parameter processing.

Note that this doesn't affect widgets; the code to process widget's constructor
parameters comes from register.js.

Fixes #96.
test directory reorg, fixes #100