Merge classes and apply them when conditions are thruthy. The function should emulate: https://github.com/JedWatson/classnames