Merge pull request #44 from poga/master

fix TypeError when deleting a collection
implementing socket.io interface

finished: GET/POST/PUT/DELETE on collection