API, configure, and main classes almost finished

Setting title broken, no chat implementation, can read from file and
authorize the app, some small modifications have been made to the gui.