Moved source to seperate module folder.

- Moved all files in src/ to src/rave.
- Cleaned some dirty code.