Fixed a bunch of stuff with modals, such as adding the animation on close, makiing sure list isn't a mess. Also added support for ESC to close a modal. Fixes #212