fixes title for bfgminer and adds tests
adds template for earnings
make module ids be the same after restart without config changes