Implement Flask API (just in mem, for now)