Change Metic interface, add dynamic metric creation.

Metrics can be created dynamically using java reflection. The metrics name
received from the client side.
Add explicit path to qprob.rdf file in build file.
Implement before and after method in metrics.
Add metrics dialog to the front end.
Fix bug with loading of qprob.rdf.