Task selection

This adds basic task selection as well as includes button fixes from Dan's branch and long-polling fixes from Nathan's code.