added middleware for handling html forms with PUT and DELETE