Rebase code on b2g18

- Changed back to Makefile.in
- Changed back to non-JS::Rooted
- EventHandler -> Function?
- DOMRequest -> nsIDOMDOMRequest
- Add ipc/chromium/src to Makefile.in, to make sure HalTypes.h is found
- MOZ_ASSERT -> NS_ENSURE_SUCCESS_VOID