Alerts now support duration, position and attributed strings.

Further stability improvements.

Change-Id: I473b5f02319d016b7c4cf8bfd7dea9b1930dcbef