Changed build script to build in Debug when running unit tests, and in Release when building the nuget package

- tests must be run in Debug mode so that all the Contract.Requires and Assert are enforced.
- two new targets BuildAppDebug and BuildAppRelease.
Directory Layer: changed FdbDirectoryPartition.Contains(..) to throw an exception to be compliant with the other bindings