Lots of small organisational changes.

- Seperate files into folders and namespaces
- Remove half-baked fixed-point support
- Refactor mathematical constants