Add full support for slug based permalinks