Added support for permalinks.
Added automatic route update.