Move projects to different programmes

- Add generic dropdown
- Update history when project changed its parent.
- Sort items in dropdown

Fixes #526