Moved script to be loaded by content load in the manifest file
Added style for the buttons
Added support to close, notResize and comments button
Calculate the left position
Update the docking position while resizing or popstate