Fix template_subst sample script

* Fixed error when no namespace is included in template name
Allow overwriting in wikibot_samples.batch_create
Fix line editing (readline now works)
Reformat docblocks
Add termcolor to util.log functions

Parsing now in _log_parse
Add log types
Update more message types
Add user list to wikibot.cred
Add per-user checks in wikibot.cred

Also updated wikibot.util.die to allow colors
Prevent coloring of non-tty output
Remove wikibot.init (unused)
Expand wikibot.console

Now automatically includes certain modules, allows for additional modules, and provides more
information.
Fixes for console

* Check for __name__ == '__main__'
* Log out user when shell terminates
* Prevent inclusion of empty module names
* Catch sys.exit() and other exceptions that terminate shell
* More descriptive error messages when imports fail
Implement colors in input()
Allow console to be run from other scripts
Add wikibot.__main__ (helper)
Better error handling in console
Detect failures in load_user
Better error handling when logging in
Bugfixes in network.py

* Use % for string formatting instead of &
* Escape cookies