Medusa distributed application framework