AI-579 Changed encoding of legacy ids to base 10

Early feedback from a few key users of the
api suggests that the transition to the new model
will be much easier if the link between old and new
ids is clearer. Newly generated ids can still use
base 36.