started to refactor cli and output.
Share commit.
Share commit.
Add YAML output format for rozo agent status

if 'rozo agent' listens to components:
>   $ rozo agent status
>   listeners: [storaged, exportd, rozofsmount]
>   pid: '12587'
otherwise:
>   rozo agent status
>   rozo: no agent is running.
merged origin develop.
wrong fix to bug #52 ... pid of 'rozo agent' is readable for any user
[rozo] add volume output
Added ordered dict management for output. Remove profiling stuff.
Fixed merge conflicts.
[rozo] Add volume outputs

* Output providing the volume list:
```sh
- vid 1:
  - {bfree: 0, blocks: 0, bsize: 8192}
  - cid 1:
    - {free: 0, size: 0}
    - sid 1: {free: 0, host: ' localhost', size: 0}
      sid 2: {free: 0, host: ' localhost', size: 0}
      sid 3: {free: 0, host: ' localhost', size: 0}
      sid 4: {free: 0, host: ' localhost', size: 0}
    cid 3:
    - {free: 0, size: 0}
    - sid 1: {free: 0, host: ' localhost', size: 0}
      sid 2: {free: 0, host: ' localhost', size: 0}
      sid 3: {free: 0, host: ' localhost', size: 0}
      sid 4: {free: 0, host: ' localhost', size: 0}
- vid 2:
  - {bfree: 0, blocks: 0, bsize: 8192}
  - cid 2:
    - {free: 0, size: 0}
    - sid 1: {free: 0, host: ' localhost', size: 0}
      sid 2: {free: 0, host: ' localhost', size: 0}
      sid 3: {free: 0, host: ' localhost', size: 0}
      sid 4: {free: 0, host: ' localhost', size: 0}
```
* output providing details about a particular volume:
```sh
- cid 1:
  - {bfree: 0, blocks: 0, bsize: 8192}
  - sid 1: {free: 0, host: ' localhost', size: 0}
    sid 2: {free: 0, host: ' localhost', size: 0}
    sid 3: {free: 0, host: ' localhost', size: 0}
    sid 4: {free: 0, host: ' localhost', size: 0}
- cid 3:
  - {bfree: 0, blocks: 0, bsize: 8192}
  - sid 1: {free: 0, host: ' localhost', size: 0}
    sid 2: {free: 0, host: ' localhost', size: 0}
    sid 3: {free: 0, host: ' localhost', size: 0}
    sid 4: {free: 0, host: ' localhost', size: 0}
```
[rozo] Add export.py, and define output

Here is an example of the export listing output:
``` sh
- eid 1:
  - {hquota: '', md5: '', root: /srv/rozofs/exports/export_1, squota: '', vid: 1}
```
[rozo] add export stat output

```sh
- eid 1:
  - {bfree: 12790866, blocks: 12803668, bsize: 8192, ffree: 1242286, files: 2}
- eid 2:
  - {bfree: 6395433, blocks: 6395433, bsize: 8192, ffree: 1242286, files: 0}
```
[rozo] correction in 'remove_export' used to rely on rpc (now it relies on ExportdStat
Merge branch 'feature/rozo_new_parser' of http://github.com/rozofs/rozofs into feature/rozo_new_parser
[rozo] fix bug when 'make' and merge ordered output with messy output

After merging Pierre's and my work, a bug appeared when *make* saying profile.i
couldn't be found. No surprise here as this file was removed in the last few
commits.
Corrections involve cmake/setup.py.in and manager/rozofs/core/platform.py.

Further bugs appeared as my version use the previous "puts(obj)" definition.
Pierre redefine this function for the output to be sorted. Temporary correction
define both functions. Must be fully sorted in next corrections.
[rozo] convert dict into OrderedDict in cli/export.py
Remove copy of files profile.py and _profile.so for build debian
package.
[rozo] convert dict into OrderedDict in cli/volume.py
Merge branch 'feature/rozo_new_parser' of http://github.com/rozofs/rozofs into feature/rozo_new_parser
refactored parsing to get a usefull help.