A Magnetar Engine for Short GRBs and Kilonovae