Remove some redundant code
First flask-webui commit
Divide console.py's main

- This allows to use the args parser code from other modules.
Use console argparser code
Bugfix
Merge branch 'master' into flask
Add support for multiple devices to webui