Parameterize uri resolution and parsing of options, use package:path.

This helps make the compiler more configurable
to embed it in other systems (like pub transformers)

R=cbracken@google.com

Review URL: https://chromiumcodereview.appspot.com//269823003