Add Job#getMetadata and clean up