Add Map Class

Moved all map function to a map class, and removed map_table in favour of map.grid. Is perhaps the time to look into MOAIGrid?