WebTiles: change scan_titles to not modify global state so we can use it in check_config
WebTiles: ensure config.static_path exists
WebTiles: Add support for -dir