Collate component

Renamed the accumulator component to collate (to collect). Completed
the implementation of collate by using a internal observer array. We
need to move this to either the Component class or the Observer class.
Having a simple array of observers is good because we are not creating a
intermediate Observer object for each subscription. All observers are
called using setTimeout to avoid errors in one observer affecting
others.

A lot of TODOs left in the collate code.
Fix bugs in Collate

Defined Collate using the Class utility and add it to the correct
namespace of uibase.Components.
Create Count component

Create a child of Collate component to count the number of events that
have occured.
Add Map component.

Map component transforms the values of a event stream with a given
function. Implement Collate component with Map.
Implement Collate component with Map.
Memory optimizations for Observable subscriptions

Add a Dispatcher class to handle the dispatching of events to subscribed
observers. Use this class in Observable to handle the dispatching. This
way there is just one subscription using the original subscribe. Such as
in the previous implementation, if an Observable is created from a DOM
event then for each Observer there is a event listener bound, but
currently there will be just one.
Fix dispatcher.push method

Pass the correct arguments to the observer.onNext function.
Symmetric arguments in connect method

Make sure that the argument order in connect method is symmetric. The
new order is (sourceComponent, inputPort, sinkComponent, sinkPort).
Symmetric arguments in connect method

Make sure that the argument order in connect method is symmetric. The
new order is (sourceComponent, inputPort, sinkComponent, sinkPort).
Add checks to Dispatcher class.
Add merge and sampleOn components.

Merge component merger two observables into one.

SampleOn component get the value input whenevet the sampleOn input
changes.
Fix typo in connect method
Add a fromAjax helper for Observable and documentation
Adding a View class extension of Component class
Make the example work again
Merge branch 'debjit' into urlparser

Conflicts:
	index.html
	uibase/commons/observer.js
	uibase/views/textbox.js
core rewritten first commit, Raw code need lots of optimization
cleanup
sample function added for testing
regx modified for handling last /