file_read_string(): Use NIH memory allocation.

Also drop trailing newlines.

Signed-off-by: James Hunt <james.hunt@ubuntu.com>
cgmanager_get_value(): Associate allocated memory with message
to ensure it gets freed.

Doc changes.

Signed-off-by: James Hunt <james.hunt@ubuntu.com>