Add size property to options for modal.open

Following on from comments by @bekos in #1885 this pull request allows specifying a size of either sm or lg when creating a modal dialog