Set socket option SO_NOSIGPIPE
Remove excessive logging

 * cc.log() for errors and one time messages only
Merge pull request #79 from folecr/jsdb

Fix a crash on iOS cocos player. Remove excessive logging that was used for debugging.