Add handling of NYX_SYSTEM_EMERG_SHUTDOWN

[GF-3190] reboot command is not working as expected

Open-webOS-DCO-1.0-Signed-off-by: Janne Hurskainen <janne.hurskainen@palm.com>

Change-Id: I260de315857150dff52098d470c1cd50b389dff6
Reviewed-on: https://g2g.palm.com/1948
Reviewed-by: Build Verification
Reviewed-by: Janne Hurskainen <janne.hurskainen@palm.com>
Tested-by: Janne Hurskainen <janne.hurskainen@palm.com>
Reviewed-by: Keith Derrick <keith.derrick@lge.com>
Harmonize responses to different queries

- Remove unnecessary new line character to harmonize responses
- Update format of Copyright headers to be consistent
- Use getdelim instead of getline to support multiline responses

[GF-3818] nyx-modules: Remove unnecessary new line character

Open-webOS-DCO-1.0-Signed-off-by: Pekka Ropo <pekka.ropo@palm.com>

Change-Id: I1585e67272e2763e35bbf9efe2cb893bb2e59219
Reviewed-on: https://g2g.palm.com/1947
Reviewed-by: Build Verification
Tested-by: Pekka Ropo <pekka.ropo@palm.com>
Reviewed-by: Keith Derrick <keith.derrick@lge.com>