Fix memory leak in Host.
Merge branch 'release_31' into development

Fix memory leak in Host.
Don't allocate TEvent on the heap.

It is not necessary and it fixes various memory leaks.
Call cTelnet::disconnect() in Host's destructor.

This way, it is guaranteed to be called when a Host is destructed. This
also fixes a crash because disconnect uses things which are deleted before
cTelnet's destructor is called.
Fix crash when the window is closed before the settings dialog.
Merge branch 'release_31' into development

Don't allocate TEvent on the heap.
Merge branch 'release_31' into development

Call cTelnet::disconnect() in Host's destructor.
Merge branch 'release_31' into development

Fix crash when the window is closed before the settings dialog.
Fix more crashes when the window is closed before the settings dialog.

These were introduced by the new refactoring of the preferences dialog.
Now that Host's are deleted and the pointer in the dialog code can be
null, ensure that it is tested before being used.
Remove dead stats code from AliasUnit.
casts
get url
TMap::vertex
foo
Setup memory leak checking on MSVC in debug builds.
Add a feature for debug builds to prompt to attach a debugger.
Avoid macro max/min with parentheses.
Resolve ambiguity between boost::tie and std::tie, pick boost.
Remove luazip lua bindings on windows.
Update the cmake build for the last commit: Rearrange includes to improve compile times and allow for memory leak checking on MSVC.