Fixed auth redirect and javascript handling
Removed database from config
Made links use url helper instead of being hard coded

Turned new story into dialog instead of link in stories widget