Rewrite require statement autocompletion

- split into several functions
- follow simlinks option now controlled by settings
- no longer requires a sublime project to be set up to work