dax: logging: Update the SQL log datestamp format

Commit b69d1d5 ("dax: logging: Change timestamp format") changed the
timestamp in the logs from seconds.microseconds to a more human readable
format.

However the SQL log is not written via d_fprintf() and was still using
the old format. Update it.

It now looks like

    [2014-04-15 15:58:01 +0100]

Signed-off-by: Andrew Clayton <andrew@dnsandmx.com>
Enable per user IP address access control

This adds a new section to the /settings/ page that allows a user to
limit logins to specified IPs and Networks.

Entries should be added one per line and can be either a single host
address or a network address using the address/prefix notation. e.g

    192.168.1.10
    2a01:7e00::/64

Signed-off-by: Andrew Clayton <andrew@dnsandmx.com>
Allow to disable IP ACLs before login

If a user finds themselves on an IP address not allowed access according
to their IP ACL, then they now have the ability to disable their IP ACL
by clicking the 'Disable your IP ACL. Click here.' link on the login
page.

Once they've provided their email address (the one they login with) they
will be sent an IP ACL deactivation link, when they visit that link,
their IP ACL will be deactivated and they should be able to login as
normal.

Signed-off-by: Andrew Clayton <andrew@dnsandmx.com>