Unimodal sequences and quantum and mock modular forms