WORK-IN-PROGRESS

more network code & miner merging, almost done

TODO: integrate the mining loop from mikaelh's main.cpp