Added getDispatchUrl.

Lets you get any resources dispatchable url. Also added support for an swf directory.