Fixed loading resource tree from saved state. Added generating map source to grunt file.