Refactored add/modify/view definition modal to try and make it more
elegant. Now uses a view that builds html content to be insert via
jquery.
Also finished delete definition functionality.
tweaks for ie8 compatibility