Queue Updates

This is to address some of the comments in #412

The way the queue is set, it allows one to surpass the per minute limits on a number of occasions, these changes attempt to prevent or at least be resistant to those conditions. This also attempts to better use the full limit allowed and not leave some behind for the next loop.

So changes are 
1) when the per page load value is left as 0, this now determines a value that fits within the limits, the old way it simply set a value, which may have been higher than the limit.  
2) validates that the next batch size will fit in the remaining quota, and if not, adjusts it as needed.  Again this was a great way to exceed the limit and cause issues
3) if the period loop is approaching the end (time limit), it now sends any remaining quota it can (at some point it would be a nice upgrade to accrue missed quota to the next period, but that makes more sense if we set up hourly queue and not the per min that we have)
4) couple of bugs fixed (calling wrong function name and the like)