Alert refactoring
Fixed irritating bug with 'Have alerts'
alert sort, param alert state, bugfixes, web improve