Add createElement for 0.11

This also adds the deprecation notice to createDescriptor. Chances are
that nobody is using that, but doesn't hurt.
Merge pull request #2177 from zpao/0.11-createElement

Add createElement for 0.11