Move Util, getUserMedia and Logger to main
Remove pointer
Rewrite dpacker