Add t=json parameter

Allow mobile clients to avoid parsing HTML.