Allow a component to draw outside the document

This introduces the flag _canDrawOutsideDocument that can be set to
indicate the component that it's ok to draw in that state.
Avoid the warning message: "Trying to replace element <div>​</div>​ which
has no parentNode"(cherry picked from commit b09e8a6eccc381a1e4fb9778fb7e03616d0f01ae)
Remove the extra logging in Gate.
Fix some errors in the specs.
Update package to v0.13.12