Nickyt bugs

@stewartmccoy Fixed part of issue #139. This fixes the slow reminder emails and invite friends. I haven't looked at the site in general, but elsewhere it is probably the same issue where the emails are being sent before the UI is refreshed.