Merge pull request #2 from labriola/develop

bug fixes #10, 11 and 12 from SDK issues list
Added any() and all() capbilities to the Promise
Fixed a bug wherein the url of the view was used to map to the mediator. this causes a memory leak when the same url is pushed twice