simplify the structure of the source tree

Also split examples out of the problems/solutions tutorials.