Add AllowPartiallyTrustedCallers to the assembly

fixes #117 and partly solves #144
Catch exception when performing file watching

In medium trust FileSystemWatcher aren't allowed. So disable file watching
when en exception occurs. Can't use AppDomain.IsFullyTrusted because it is
only supported in .NET 4 and up.
fixes #144