Map api

@Widdershin  
Did you mean to check this in? I think this functionality ended up in skirmishMap.js.