API output for independant Topic blocks

Also a few other tweaks with pagination links, a fix for
incorectly rendered timestamps, and splits the query
portion out of TopicListBlock into TopicListQuery.

Change-Id: Icd8033e2aa149236e47121ee31b6bc4f66dbf0f2