Separated COINBASE_FLAGS out into main.h and made RPC getmemorypool return it