Globular cluster photometry with the Hubble Space Telescope. 3: Blue stragglers and variable stars in the core of M3