[#318] Moving commaIt to app.locals and fixing some other deprecation wa...

[#318] Moving commaIt to app.locals and fixing some other deprecation warnings that might cause issues later.

Note: I want to verify this manually on development before merging to develop. Please allow me to do the merge.