Theory of elastic thin shells