Project reorganization

Use more canonical organization, placing source files under folders with
the same name as their namespace. Also, fix paket.references usage.