Create and reuse function for calls to send sets thru browser fifo.
Fix some typos.
Organise imports.
Fix image page comment, remove unused import.
PEP8.
Simplify.
Move settings into its own module.

This makes it possible to import settings from different modules, and also makes the viewer.py code a little more clear as we're now accessing settings.nodetype, settings.shuffle_playlist and so on.
Allow viewer module to be imported without running it.

This can be useful for unit tests for instance.
Organise imports.
PEP8.
Reuse settings loading code.
Eliminate redundant time_lookup.
Hoist import to fail early on import failure.

Not that random.shuffle should ever fail to import but it's a good practice.
Fixup incorrect import for penultimate change.
Added support for redirections.
Use the final URL in case the URL redirected.
Remove redundant if, simplify.
Merge branch 'reorg' of github.com:wireload/screenly-ose into reorg
Merge commit 'af894f8' into ASoft-se-af894f8

Conflicts:
	viewer.py
Refs #32. PEP8.