Added custom term/topic/doc limit capability.

Removed hard coding. Can take custom limits through url vars.