Merge pull request #13 from TheAntonioReyes/master

Couple small fixes, command to auto update earnings table.
Fixed call-time pass-by-reference fatal in PHP 5.4 (See note here: http://us3.php.net/manual/en/language.references.pass.php)
Better session timeout handling