Rustic onion tart with pesto