Embedding and view metric changes

Modifying embed and view metric to use url arrays, and cleaning up some
code surrounding them