Magor rewrite of applicationhandler, and introduced a new table used for the application queue.