Moved conf generation to config.rb

Signed-off-by: Shashank Sahni <shredder12@gmail.com>