https://github.com/dandroid88/webmote
I have been working on this for fun in my spare time. Probably not the best fit for what you are doing as my primary focus (so far) has been controlling IR-controlled devices via a web interface. It is still a bit of a hack but it works well for controlling my TV, stereo, xbmc, x10 lights from anything with a browser. I have been hosting it on a raspi and it is pretty fun to play with (turning off my fiance's 'say yes to the dress' from the bathroom).
Good luck with your project.
There was an old Perl based project called Mr. House ( http://misterhouse.sourceforge.net/ ), though it hasn't seen activity in a few years. It tried to be vendor-neutral and (apparently) had voice controls, too, which sounded cool.
I never had the money to set up the hardware, though, so I have no idea about it's actual abilities...
Best of luck to you!