Split console_fd handling to a separate source file to simplify device.c. Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>