move logic out of controller. Chaneg docworks url to take post
minor style changes
move docworksProfile link to settings page.
remove delete template
adding validation and new profile forms to avoid creation of invalid profiles
make loading of validation js conditional on need.