added pubsub

added pubsub and cachefactory.  also published a routes object so
controllers can subscribe to the object.