fix event query - some DB's have problems with it
provide delivery report on both sides, local and remote
Merge pull request #11 from beardy-unixer/master

Redbasic update
fix register_policy globally
import the toggle_mobile stuff to shut up some warnings
add "refresh their permissions" function
ensure the function can be found
stray paren in sql
change precedence of bitwise operation
more debugging - looks like michameer.dyndns.org is throwing 500s so cannot test further
add refresh to connection edit menu, and notify of communication issues
place holders for mail and event icons on nav bar
make the menu consistent and eliminate redundancy - though we need icons for mail and events (sorry Thomas if this breaks your themes in a bad way, but at least the menus make sense now).