Download logs

Filename = LOG_TIMESTAMP.log
Refactor common function

Also allow glyphicons in modal action buttons
download logs from server
Add timestamp to file
Move window.location to a globally accessible func
Merge pull request #1303 from control-center/feature/downloadLogs

Feature/download logs