Added modal component and actions

Also added some other things, I think, but it's mostly the changes to support
the modal component