Spliced chooseLayout and doLayout

- spliced chooseLayout and doLayout, in this way the “doLayouts” are
executed from the parents to the children, so it’s possible to set
properties on child views from the parent’s doLayout

- fixed setHeader of HttpRequest2