move Model::hasPending and whenNothingPending into connections.js so that it can be used in the client
Merge pull request #12 from codeparty/master

move Model::hasPending and whenNothingPending into connections.js so that it can be used in the client