Joint Event and Temporal Relation Extraction with Shared Representations and Structured Prediction