Improve Flint main module
Restructure the main module to move each concepts on there sides.
- Create module for the RPC API
- Add some tests
- Create helper for the server management
- Create module for the main window
- All this main features (including scan manager, and other managers) are now provided by
FlintState
That's basically a big clean up