Server part of phonegap agenti app