Added methods to run queries to Buffer updates. Refactored part of the url system to make easier to update in the future. Also generated a javascript version for non-coffeescript coders