general REST clean-up
return info on get
Added experimental REST metadata support

This basically provides a dynamic generated REST documentation for each
resource and can be accessed by /api/<resource>/metadata