Making Ajax fetching of tags a configurable option

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>