Merge pull request #181 from acperez/mozAPI

Modified simplenotification example push webapp and push application server to work with mozAPI
Fixed UDP notification with the new API proposal
Fixed to avoid crashes when the websocket protocol is not recognized
Removed old getToken test (now the tokens are not recovered via HTTP)
Fixed flood-test
Fixed the way apps are selected. Now using appToken instead channelID
Fixed newVersion update. Now only changes the data and not add a new one
Fixed the unregister channel method
Send pending notifications on hello package
On mongo, version -> vs
Optimization using closures
When closing UDP clients, we response the 4774 errorcode. issue #178
Updated documentation with the new API
The flood-test should be incremental and not decrement
Don't accept null channelIDs
On hello, we only send notification if there're pending ones. Avoid send empty array
Return correct error if the client tries to unregister unexistent channelID
Renamed SimplePush API filename
Renamed hello message from interface to wakeup_hostport as discussed with mozilla
Merge branch 'renameWakeUpinterface' into mozAPI