You know, i'm in almost the same exact situation. Almost got with the girl of my dreams, but everything fell apart, i fell in love; she didn't, and now i feel really really insecure.
My solution is to just try to get out and meet people. It feels good when some cute girl from across the room smiles at you and some of that old confidence comes back. But this insecurity ought to pass with time
Good luck