Rename 'api' to 'ceph-rest-api'

Signed-off-by: Dan Mick <dan.mick@inktank.com>
MonCommand: typo "W" -> "rw"
ceph-rest-api, ceph_argparse.py: use param ict instead of tuple/list

REST params are keyword=value, and keyword is value-checked.  It makes
more sense to pass these as Python dicts than tuples or lists.

Signed-off-by: Dan Mick <dan.mick@inktank.com>
ceph-rest-api: fix help

- only show args if they're there
- separate args with '&'
- wrap the concise_sig to 40 cols indiscriminately

Signed-off-by: Dan Mick <dan.mick@inktank.com>
ceph-rest-api: use 'perm' to change which methods accepted

Also, make help show method name

Signed-off-by: Dan Mick <dan.mick@inktank.com>
ceph-rest-api: return help for partial, but error for incorrect ep

Don't output first-match help if nothing matches.

Signed-off-by: Dan Mick <dan.mick@inktank.com>
ceph-rest-api: handle format correctly

- process Accept header (precedence: path extension, Accept, default)
- set Content-Type in response to application/xml or application/json

Signed-off-by: Dan Mick <dan.mick@inktank.com>
ceph-rest-api: 400 error on bad parameter validation

Signed-off-by: Dan Mick <dan.mick@inktank.com>
ceph-api-rest: log Accept, use decorator for before_request logging

Signed-off-by: Dan Mick <dan.mick@inktank.com>
ceph-rest-api: change app name to 'ceph-rest-api'
ceph-rest-api: configurable logfile, cleaner logging formatting

Signed-off-by: Dan Mick <dan.mick@inktank.com>
ceph-rest-api: comment cleanup

Signed-off-by: Dan Mick <dan.mick@inktank.com>
ceph-rest-api: function ordering sanification

Signed-off-by: Dan Mick <dan.mick@inktank.com>
ceph_argparse.py: bug in dict-tuples change - squash