Switched layouting implementation from just edit policies to edit
policies and a layout manager. Still work in progress.