Add the lucky scraping, and management tool, start flask application and some other helper functions