Rearrange some Timer code.
Merge pull request #159 from ahmedcharles/replay

Rearrange some Timer code.
Fix warnings.

One instance of a unnecessary switch statement.
One instance of an unreferenced parameter.
Merge pull request #160 from ahmedcharles/warnings

Fix warnings.
Remove dead code.
Merge pull request #168 from ahmedcharles/dead

Remove dead code.
Setup memory leak checking on MSVC in debug builds.
Enable better tracking of PCRE allocations for memory leaks.
Update lua_yajl to have better memory leak detection.
Improve lua's memory leak detection.