Replaced all global options with buffer specific ones
Optimise code to minimize the size of the code loaded on required plugin activation
Merge branch 'per-buffer-config'