feat(modal): expose $close and $dismiss options on modal's scope

Closes #966
fix(modal): allow replacing object with default options

Closes #967