Merge pull request #1029 from Oldiesmann/release-2.1

! Minor PM tweaks
! When working with cron and the error log, some of the values will not exist (or if they did exist they would be meaningless and so should be disregarded anyway), so let's do something about that.

Signed-off-by: Peter Spicer <sleeping@myperch.org>
Merge pull request #1030 from Arantor/release-2.1

! When working with cron and the error log, some of the values will not ...
! Another minor change for error handling purposes.

Signed-off-by: Peter Spicer <sleeping@myperch.org>
! Adding a default value for the first working alert preference.

Signed-off-by: Peter Spicer <sleeping@myperch.org>
! And we need to get the upgrader doing the same - note that the old 'always notify admins of registrations' should now be phased out in favour of using an alerts system - this allows admins to opt out of notifications.

Signed-off-by: Peter Spicer <sleeping@myperch.org>
! And one less setting for the admin

Signed-off-by: Peter Spicer <sleeping@myperch.org>
! And now the meat of notifying users for a new registration - the old adminNotify function should be a wrapper for creating a background task and that should do everything else, this seems to work, including sending emails.

Signed-off-by: Peter Spicer <sleeping@myperch.org>
! And then some bug fixes for the cron file. Now we just need a way to trigger it and we're good.

Signed-off-by: Peter Spicer <sleeping@myperch.org>
Merge pull request #1031 from Arantor/release-2.1

Notifications and background tasks are awesome, but only when they get called manually for now...
! Might help if the right variable is passed on.

Signed-off-by: Peter Spicer <sleeping@myperch.org>
! It might also help to mark this field as a proper integer field if we want to play increment with it.

Signed-off-by: Peter Spicer <sleeping@myperch.org>
! And a bit of clean-up before we prepare to do the real saving thing.

Signed-off-by: Peter Spicer <sleeping@myperch.org>
Merge pull request #1032 from Arantor/release-2.1

Some more alerts fixes
! These appear to be the only public facing instances of 'memcache' that should be changed; nothing under the hood should be changed at this time, fixes #979 (if you find any other instances that should be fixed please advise)

Signed-off-by: Peter Spicer <sleeping@myperch.org>
Merge pull request #1033 from Arantor/release-2.1

! These appear to be the only public facing instances of 'memcache' that...