added tests

some test files for examples
added test & examples
see extended

* Removed preloading & caching for now
* Changed buildTriggers to bindTriggers
* Added _isTrigger to bound triggers to prevent reapplying event
listeners.
* Simplified .genid and included encodeURIComponent to make url safe