Fixes styling to work with bootstrap.
Makes ModalView use bootstrap modals.
Adds "type" to trialObject attributes.
Removes legacy modal items.