Implemented resizable panels using jquery-ui

All of the resizing happens in layout.js.
Layout.css has also been modified as jquery-ui-resizable needs relative
position to work.