Kronecker'S Theory Of Binary Bilinear Forms With Applications To Representations Of Integers As Sums Of Three Squares