Text this: First-Order and Temporal Logics for Nested Words