Configured the contact form for send emails.

Added the necessary php and javascript for the contact form to send the
necessary info via ajax.