Save webdirurl in database.

Signed-off-by: Justas Balcas <juztas@gmail.com>
Merge pull request #4410 from juztas/webui

Save webdirurl in database and fixes #4351