Methods added to handle connection tests
New Marajax class to handle AJAX stuff

Implemented a new class Marajax to handle AJAX stuff.
Tested that class using JSLint. It was great to see some new
perspectives and ensure the code reliability.
Tests implemented for the new class Marajax