Auto generate app_secret if creating config from sample

Addresses #55. Generates an new app_secret upon generation of standard conf file. Used dictionary % string templating to get around 'user-based' templating to allow future additions.

Also I needed to encode the urandom otherwise I was getting Unicode errors.

@thieman let me know if you wish me to make any changes.