Added weak callbacks, hid THROW_ERROR macro.
merged commits
Improved weak callback API.
Added documentation for Weak Reference API.
More merging.