Hearts defender Danny Grainger believes the financial crisis at Tynecastle has helped to bring everyone at the club together.