Applications of Walsh and Related Functions with an Introduction to Sequency Theory