Back end for IP banning.

Prevent banned users from entering chats and expire bans after 30 days.