Probably the most efficient would be to set up REST as fmsf said. In general, each command would correspond to an URL with other variables attached:
http://example.com/nuclear_warhead/activate/1
http://example.com/nuclear_warhead/activate/2
http://example.com/nuclear_warhead/activate/3
http://example.com/nuclear_warhead/position/1/AtlanticOcean
http://example.com/nuclear_warhead/position/2/NorthPole
http://example.com/nuclear_warhead/position/3/Moon
http://example.com/nuclear_warhead/launch/1
http://example.com/nuclear_warhead/launch/2
http://example.com/nuclear_warhead/launch/3
You could either have these as client actions (they click on a link or submit a form) or as Ajax calls. For Ajax calls, they fill out a complicated form, the form formats it into an acceptable URL with attached data, and sends it to the server. Once the server processes the commands, it returns a result (in XML or JSON format, usually) which is parsed by the browser and displayed on the page.
In a full RESTful app, you'd use the different HTTP methods of POST, GET, PUT, and DELETE to handle records
http://example.com/secret_document/1 [POST]
— creates the document
http://example.com/secret_document/1 [PUT]
— update the document
http://example.com/secret_document/1 [GET]
— retrieve the document
http://example.com/secret_document/1 [DELETE]
— delete the document
Not all browsers can support all HTTP methods, however.
In terms of implementation, Django is one option but a bit heavyweight for what you're looking for. You might want to look at this article which describes in full how you'd set up a lightweight application for responding to web client requests. You can definitely expand it out to add more functionality.