DDF-211: Made security manager service optional.

Also added unit tests to verify.
DDF-213: Fixed NPE when there are no InputTransformer services.