remove redundant server code
move transform_alert() out of alert common module so that both
server and client can use the same version. also renamed it
to normalise_alert() in Transform class.