Added photo and batch message processing, notification on server closing comms, bugfixes.