[all] Move call to modulemapper into platform.js

This allows it to be used by blackberry's two-phase symbol mapping.