Allow lowercase React import and using an object reference

I have been importing React into a lowercase variable, and also using the harmony transform for using class syntax:

    var react = require('react');

    class ComponentName {
      render() {
        ...
      }
    }

    module.exports = react.createComponent(ComponentName.prototype);

both of which caused the HMR to not work. This commit allows both of these things to also work.