Added custom headers support

Make it possible to send additional customs headers when submitting the
form. Most of the code was already there but it wasn’t used