Added Metrics tests and fix issue #6

Added support for metrics module and add checks to make sure the
operations are valid.  The "AllowedOperations" for GetViews call will
return back operations that are not valid.