Fixing iostreams

This fixes #189: iostreams component should use startup/shutdown functions, #190: hpx::cout should be a std::ostream, and #1153: Standard manipulators (like std::endl) do not work with hpx::ostream.