feature: implemented kex detection for ubuntu 12.04 and 14.04

also restructured this part into a ruby structure, since it's much more readable compared to doing something similar in puppet

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>