Cleanup bitmessagemain.py

Move API code to own files
Reorganize bitmessagemain.py to eliminate entry point dependencies for
multiprocessing compatibility