Gitignore, CSRF tokens, config file and check for existing token.

Moved some stuff out in config files, added CSRF token check.
Added sample.conf.
	Now runs a check to see if token already exists.