Fix problem with uploading assets (issue #43)
Merge pull request #44 from mortisj/master

Fix for issue #43
Add spaces to adhere to PEP 8 .
Initiate the database when the server starts so we can always be sure it has been.

Remove the two places prior where we were doing this. I found if you started the server fresh and visited any page other than the home page first you got errors. This will confirm that the database always exists.
Make node IP introspection more robust. Should solve #49

Try multiple network interfaces when determining the node's IP address. Also, show correct port according to the settings.listen_port value. Previously was hardcoded to 8080, which may not be true if you've customized your port.
Merge branch 'master' into screenly-ui

Conflicts:
	utils.py