Move atomprop.* to topology/

- Remove some unnecessary includes.
- Convert the source file to C++ and fix some issues.
- Some header cleanup in touched files.

This introduces a fileio<->topology cyclic dependency, but that needs to
wait for later resolution.

Change-Id: I88e70cd9024d86c56c4d4435fa91c42af9af7c29