Clean up code, expose toggle-debug as builtin.
create & use proper interfaces; add parseExt method to decl

Created define-{accessors,form} wrappers which check interface
adherence.