update to angular 1.2.0
refactor PubNub interface