Sync open tabs and project sidebar

Selecting tab selects corresponding file in sidebar, and vice versa. We'll see how this goes and reevaulate later.