Introduce CNodePolicy for putting isolated node policy code and parameters on

Initially populated with policy-specific code moved from AcceptToMemoryPool.

This should make no *actual* changes, just refactor code. If any change in behaviour is found, it is a bug in this pull request, please report it even if you think it's a good idea.
Just copying it from main.cpp, where the code came from.