Changed config key from server to beanstalk to be more descriptive.
For some reason in Apache/PHP on OSX the script name in $_SERVER doesn't get passed across which means the route doesn't get discovered correctly. The way around that is to use the htaccess file instead with the same rewrite.
Added specific setup for the different modes.
Added get route for jobstats which returns a json array of all the job statistics.
Special function to convert the array keys so they can be used on JS.
Changed the service so it returns an indexed array rather than associative... much more useful.
Cleanup a tiny bit.
Changed to pull the information from the new jobstats route and keep the stats updated.