Implement AJAX location sending

Location data are sent via AJAX and it's working nicely.

Signed-off-by: Emanuele <feliziani.emanuele@gmail.com>
Require JSON gem

Require JSON gems.

Signed-off-by: Emanuele <feliziani.emanuele@gmail.com>