Reintroduces EC2 metadata service

Adds a refactored version of the EC2 metadata service removed
in a previous commit.