moved query.js createModel private to queryhelpers.js for use in hydrating models in streams.

fixes #1792