Mechanics of Elastic Dislocations in Strained Layer Structures