Update Cargo file [[lib]] and divide into three files

`[[lib]]` has been deprecated and it's not possible to have multiple `[lib]` in `Cargo.toml`.

Multiple crates need multiple Cargo files, I've created those (inspired by [nphysics](https://github.com/sebcrozet/nphysics)).