Rosemary Thumbprint Cookies with Tomato Jam