Improved completion behavior

Modified completion behavior to include completable items from the
current document.  The order items appear in the completion menu seems
arbitrary (it's actually determined by the "fuzzy matching" algorithm)
but it can't be influenced from a plugin.