crosh: setup signal traps early

Let's set up the ctrl+c at the very beginning.  We can also use a simpler
form rather than needing a dedicated function.

Similarly, let's also do the HUP handling at the same time.

BUG=None
TEST=ran crosh & hit CTRL+C and saw crosh continue to run
TEST=ran crosh & ran ping & hit CTRL+C and saw ping aborted

Change-Id: Iee4f83ef845374f7962ff905eb3249348d6d435c
Reviewed-on: https://chromium-review.googlesource.com/178934
Reviewed-by: Chris Masone <cmasone@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
1 file changed