Modal closing method additions

Added the ability to close the overlay by clicking on the background or by hitting the esc key. Created to tutsup_modal_exit function to reduce repitition.