Add support for Union types, including completion

Note: this functionality needs a modified tern @ https://github.com/MetaMemoryT/tern/tree/union-types