Topics In The Theory Of Josephson Arrays And Disordered Magnetic Systems