Make Infobar and its children a part of the UI XML

Also modified the CMakelist to rebuild the assets when the mainwindow.ui files is modified.
Cleaned up infobar's constructor