Electrics are not my thing but a quick google found this product-
http://www.hobbyking.com/hobbyking/s...dproduct=15517
I am sure there will be other little boxes and of course other ways to achieve what you want.
If you wait for a few day you may find someone else will chime in with better knowledge.....good luck.