Added metalayer processing functionality.

It is also important to mention that metalayers now *must* have a meta property.
Otherwise they won't be recognized as such.