AUI-1107 Listeners after visibleChange are not executed with modal.destroyOnHide enabled

Hey Iliyan,

I'm sending you this PR based on the discussion with @epgarcia for https://github.com/ealonso/liferay-portal/pull/119. In my opinion, this is something that should be fixed, and can be triggered quite easily as demonstrated on the test I've added. 

However, please, consider if the current behaviour is to be expected and we wouldn't want to fix it.

Thanks!

PS: I've also fixed some lint errors on the module so we can move forward with the `use strict` plan...