Change close/minimize behaviour

Make the close btn actually close the debugbar and just remain a small button in the corner. Minimizing still works when clicking on the open tab.
This is helpful especially for smaller screens (mobile) when the debugbar is in the way.
It should save the current state, just like before.