add metadata to package.json
check for data property on chunk and emit that if present, otherwise emit the whole thing (fix for browser+server compatibly). closes #2