Master Detail Code Complete

Organizes/sorts using statements

The DataServiceKey for the MockDetailEntity.cs was incorrectly set, causing the deletedetail test case to fail for azure. Fixes this by using the PartitionKey and RowKey for the DataServiceKey.

Fixes issues which arose from the latest version of the storage emulator. Now detaches before attaching to the context.