Add support for storing and querying test results

This improves the avocado server with enough features to store job/test results, activities and data.

It also provides some utility server side functionality, for example, one that gives the job pass rate.