refactor: split filebrowser main to more functions
refactor: put all pheripherals to one object
refactor: split pheripherals to separate library