Significant plugin overhaul

Made highlighting behave more sanely in all modes, and provided several helper commands for users.