Compile and xslt for doc details

I added the compile directive to support the xsmlt transform of doc details. I changed mlrest.js to take options for specifying which transform to use for the document get over the rest api.