+ added folder content api function
fixed bugs with json encoding (Api.folder_contents)