Further refactored script system to allow more customization for special apps.
Greatly refactored click integration and documented it a bit more.