Added fix to  set grailsApplication in ApplicationContextAware.
Isn't getting set during dependency injection for some reason.
Perhaps due to class being abstract?
Added SQL code to drop cswview if it exists already.