Refactor debug bar dump methods and add hide button

Change-Id: Iadf9acc2f79cdbe4b33a0c0bbfab780fe992d111
Merge "Refactor debug bar dump methods and add hide button"