Added support for metadata profiles

Completed resource-oriented implementation
Version 0.4.0