Fix for showing attributes depending on info in metadat.attributes vector.
Added metadat to layer store.
Related to #40