add api layer, restructure entire app to handle multiple flask apps, add simple api tests