Fix missing $userid in input redis function
Fix missing $userid in input redis function

Additionally, add a public function to get the last timevalue

emoncms/emoncms,chaveiro/emoncms,inverse/emoncms,chaveiro/emoncms,emoncms/emoncms,inverse/emoncms,chaveiro/emoncms,emoncms/emoncms,emoncms/emoncms,emoncms/emoncms,inverse/emoncms,chaveiro/emoncms,inverse/emoncms