Metadata initial PR

This is a PR to let you guys have a look at the code and run the tests. I'm getting 33 failing tests because of processing. :(
I still need to add the UI for most mandatory fields. but that is a minor thing (work-wise). 
see you tomorrow