Added resize function to HBox and factored out shared code to AbstractBox, see https://github.com/phetsims/scenery/issues/116