refactored queue.py, plus added LoadHistory to txmempool
json api to getStats