fix inconsistent triggering of plotPending function in client
use a different version of restler with eventEmitter fixes
fix a few server-side bugs