Added a console output string method.
Added string and console utils with methods from generate_gallery.rb.