Move some buffer related utility functions to buffer_utils.{cc,hh}
Add an expand_tabs string utility function
Fix support for tabulation in insert completion candidates
Extract insert completion code to insert_completer.{cc,hh}