Refactor code

-New Locks class
-Refresh function moved to HostList
-Pinging entered hosts and all hosts merged into one function
-Reduced amount of code in MainWindow
-Constructors for classes changed to handle new functions