Added support for a configurable format string used to apply version to a path (defaults to '%s?%s'). Moved base url/base path logic to packages.