Did some more re-factoring of the mining run views.
Added a unit of work/repository pattern along with a service layer to abstract all the code layers for testing.