Added jsDocs to Layer, Primitive, Rect and Image.