Use HTTP status 404 when a resource is not found
Convert /api/stats/ to a day-ago logic to a date and days-after-day-0 logic
Create package biostar.server.tests

Move server/test.py inside this package and rename it to test_functional.py.
Add test_api.py meant to test the api.