A good article on extending selenium server with custom commands