added Nancy pipelines for error handling,

cleaned up container registrations.
fixed broken tests.