Changes to get taginfo command using latest taginfo api

The changes in these two commits firstly extract some string constants to variables at the start of the code (so I can change them easier for testing here), and updates the taginfo command to use taginfo api v4 rather than taginfo api v2.