[tern addon] Support custom type/completion tips

+ a few other fixes
[tern addon] Add crude support for web workers
[tern addon] Add fileFilter option