Added the ability to mine a block using the first solution.
The setgenerate command, in the presence of the -nopowafter option, now generates one block and returns.