Added registration and resolving instances by contracts