Reorganized add transaction code; added user messages; added basic ajax call handling