Add metadata to DT object with getMetadata function, etc. 

Add metadata to DT object with getMetadata function (now used in tsc.to.xts too). Also move the tsc.to.dt function.