Added quest sorting based on a priority list.
Renamed main quest ids to 'ma'.