Add support for /update and /nic/update
Merge pull request #152 from nkukard/github-htaccess-update-urls

Add support for /update and /nic/update
Make sure user is active and has perms for updates

We need to make sure the user is both active and has permissions to
do updates.
Merge pull request #151 from nkukard/github-verify-user-perms

Make sure user is active and has perms for updates
Connection to db can fail db port is not set.