Added metadata editor to layout
Implemented basic metadata methods
Added naive implementation of ad metadata