Now properly writes tyhe csrf field at the beginning of the form.
Authored by: keess 2013-05-15
Parent: [r2551]
Child: [r2553]