Various fixes to form layout code. Added jQuery config to preserve newlines in textareas.