Changed how `__DEV__` and `__PROD__` are defined and used to be coherent...

... between backend and frontend