Add sql and dao for page permalinks

Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Add the permalink form inputs to the edit page dialog

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