refactor routes, pubsub redis client, added environments folder, added auto creation of views - ab