utils: Move close_stdout to io.
io: Add safe_open command.
kayos: Move safe_malloc. Use get_data_path_for() to open the right kayosdb file.
forestdb: Update
kayos: open and close handles every loop for now.
call json_stringn() because forestdb strings are not null terminated.
add back get() command.