Moved Alert logic into separate file. Added preferences controlling if
alerts should be shown. Added preference for max alert text length per
line.