added signal functionality (inspired by AS3 signals), added qunit test