Refactored API
Wrote a bunch of tests
Added default form, for pages with only 1 form