Metadata support

Adds support for new metadata API :).

cc: @zenazn (http://i.imgur.com/xVyoSl.jpg), @andyyoung for review.