fix metadata specification and ingestion, start removing dependency on tinyos Message lib