Extended TQFTs via generators and relations I: The extended toric code