Adds a function to the queue.
An object that contains the method to run along with other properties:
- method : the method to be called. It will be provided a success and error function to call
- success : an optional callback to be called after the function is done
- error : an error message if the command fails
- timeout : the time until success should be called
- bind : an object that will be 'this' of the success
- type: the type of method (optional)