Clean up forms

Add a small library to handle forms. This should make it a lot easier
to modify the form in the future as well as for other people to add
their own forms