Characters of representations of Lie (super)algebras and (mock)theta functions