Refactor code

- Clean code, reorganize order of some functions
- Move setting stuffs to class SettingsClass (similar to NetworkDialog)
- Fix bugs of app flow
Add tab of Console
Merge pull request #4 from linhlarry/kivy

Kivy