Hook up the permalink code to the CMS

Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Hook up the permalink dispatcher to the theme

Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Put all fetched pages into a page cache

Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Cache the fetch of the start page id

Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
GetPageURL() now gives permalink addresses if possible

Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>