Fix NPE
Use RequestBuilder Deferred helpers in Ajax plugin to simply the code
Extract helper classes from the Deferred class, so as we dont get compilation errors if the project does not depend on RequestFactory. Move all Deferred stuff so its own namespace