Fix dup heartbeat issue.

Adding hooks in MD to verify HB integrity.
Fix build flag issue.
Merge pull request #197 from sunyc/master

Fix #195
clang-format
Update m4/ccommon scripts
Adding more hardening to develop build.

Also fixed some flag inconsistency.
Revamp lpc_socket implementation
Removing DXALLOC, and MALLOC.
remove ALLOCATE macro
Remove traces of WRAPPEDMALLOC
Remove uvalarm, POSIX_TIMER is now default.
Removing MESSAGE_BUFFER_SIZE
Fix a rare deferrence after NULL bug in new heartbeat impl.
Fix a issue where severe lag result in user disconnect.
Remove unused code in lpc sockets
Remove int_load_object hack
Standarlize GET_CHAR_IS_BUFFERED.

Also fixed various telnet related issue.
Also fixed #206.
format source
Removing WIN32 related hacks from codebase
Merge pull request #205 from sunyc/master

Continuing code base cleanup.