Trigger attach

I'm taking over #1957. I just did a rebase and a small refactor of `displayedViews`. Just gave this a read through. Even read the massive on-attach spec. I think it's ready to go in. 
Can you make these stubs and simply remove the spies below?