Squashed commit of the following:

commit e072f3fe05d358b5ab64c8ab033283809fc40914
Author: James Hunt <james.hunt@ubuntu.com>
Date:   Tue Dec 10 20:12:53 2013 +0000

    cgmanager_get_value(): Associate allocated memory with message
    to ensure it gets freed.

    Doc changes.

    Signed-off-by: James Hunt <james.hunt@ubuntu.com>

commit e032aa11ac2be94eb0ed8d0941d3e37555447848
Author: James Hunt <james.hunt@ubuntu.com>
Date:   Tue Dec 10 20:12:05 2013 +0000

    file_read_string(): Use NIH memory allocation.

    Also drop trailing newlines.

    Signed-off-by: James Hunt <james.hunt@ubuntu.com>

Signed-off-by: James Hunt <james.hunt@ubuntu.com>