Moved files and started tests

Issue #14 (tests)

- Restructured the files and directories to reflect pub package layout conventions.
- Started unit tests for the ApiServer.