Move form functions into a separate lib, .formtk()