Documentation.
Cleaned up dependancies with pluggdapps' library routines.
- minor fixes in error logging and documentation
- template plugins must be included under try ... except blocks to avoid
  crashing when they are not being used.
- remove duplicate dependencies.