Added histtest.py, improved ratelimiting warning, and allow tweaking max-results in history()