Improved bridge side callback code.

1. Removed references to Callback wrapper from the proxy, as it's no
longer a wrapper.
2. Bridge now tracks the Callbacks.
3. The win32 APIs, by default, define min & max macros (!) which
conflict with STL headers (!) (!!).  Added a NOMINMAX define to avoid
this conflict.
4. RegisterCallback now returns the new flags.