Fix equals in ApplicationSecurityManager

A class was compared to a class name (= String) which will always be false.
Replaced it so that the actual class object for the class name is used.
Fix erroneous calls to Thread.run

Was calling Thread.run instead of Thread.start in Activator, ViewModule and
DeployView
Fix possible NullPointerException
Fix usage of unconnectedChannels map

Was trying to remove the future object instead of the associated channel
Fix locking in MessageAdapter
Run Autoformatter