major restructuring of code, separated basic fbase service into new file
added some tests for fbase
added tests and proper response for invalid get paths
added some comments and todos for later