[TIMOB-16632] Added logging support. Also fixed bugs with production mob...

...ile web builds and some small js syntax issues.