Refactor a bit and add Openbox check

Also remove discarding of commands' output, remove vlc installation, add
aliases function and run upgrade at the start of the script.