Gaia Data Release 2: Summary of the contents and survey properties