Separation of form code

This is mainly about using routes to use meaningful URLs and separate
different forms needed to function properly.