Fix grunt task so that it actually calls the underlying proxit server correctly and added tests.