Changed the max timeout to always be the max poll interval

- This will help for when we have faster polling but a higher load on the server
Status text in dependency list in builddetailpage. Headline for dependencies or artifacts
Gradients for the bootstrap buttons
Ensure Git submodules are checked out before cleaning them
Don't try to use -x with clean command
Fixed a memory leak in the tooltips code

- Tidied the code a little
Fixed a bug where artifacts and dependencies were missing from the build page

- Removed console log
Fixed unit test for git full fresh submodule
Merge branch 'staging' into katana