Refactor of mojom_bindings_generator to parse imports before translating.

BUG=
R=viettrungluu@chromium.org

Review URL: https://codereview.chromium.org/758743002