Pseudo offline messaging / sending of unsent messages when user comes online. Currently tries to send all unsent messages rather than just for that specific user, could do with improving, but hey, it works.