Fixed application:activate() and re-added allwindows param; part of #215.