Pushed some patches to the next branch

I have pushed to the next branch patches to: (i) complete the removal of the .exe files in win32; (ii) use NT EventLog handler, for logs to end up somewhere under Windows; (iii) add JSON support and fallback to simplejson when json is not available (e.g. Python 2.5); (iv) cleanup and improve the logging infrastructure.