added a thing to keep the db log file from getting to big
made a logging function for the rpcs hopefully this will help me figure out exatly when the $_SESSION['current_hash'] is getting set incorrectly
Merge branch 'dev'