Making ajax polling of tags configurable.

Getting tags through ajax is currently POST, but it
is preferred to 'GET' than 'POST'. So making it a
configurable option.

Signed-off-by: Santosh Sivaraj <santosh@fossix.org>