Tests use repo binary location as first preference
Partially port stats module to use gvm virtual machine

The function get_extends() is ported however some test cases are still
failing.

The function get_progress_table() is not get ported.