Merge pull request #1 from haohaolee/fix

for pull request
update to the latest libev
fix by valgrind report
fix typo
fix logs
Fix a bug that considering a md5 sum as an integer must follow little endian manner
adjust some type definitions.
add logging functions
improve daemon function
add logging functions
improve daemon function
fix typoes
merge a bug fix from clowwindy/shadowsocks-android 's local.c at f036cc0a069d76bb9e0434f2a89d3db30fde29d8
rebase from madeye/master
update for some new features and bug fixes