ai_helper.put_labels: display content of strings rather than 'nan'
ai_helper: add functions to get direction indices and strings

These consist of a number of supplementary functions, plus three
function get_cardinal_directions, get_intercardinal_directions and
get_hex_facing which return strings for the directions (in cartesian or
hex coordinates) between two hexes.