Put build logs in email only in case of errors
Redirect to the waterfall view when visiting the home page
add_step: set flunkOnFailure = True
When redirecting to waterfall view pass '?reload=60' to refresh every minute
mail: add missing import
Add step to prune old artifacts on the master

Also move all code which handles artifacts to its own module.