refactoring: moving crowdsale-related RPC functions out