Use islandora_paged_content_get_pages(), and associated updates.

Also, fixed use of classes in l().