Add a FormPanel to the add layer dialog instead of adding each form
element by hand

I need to review the catalog search api as it seems to have a lot of
similar functionality.