cleaned up writedoc fxn, using helper http fxns, examples work now
updated some fxns, using content_type_json convenience fxn to get json conent type
cleaned up deldoc to actually work
fixed getattach fxn
major overhaul to make most functions take as first arg the cushion
get rid of username and password params, and port param, do all auth stuff using cushion fxn now, #16
fixed dbinfo for new format
fxied head fxn
fxied params for cushuion fxn
removed not used parawms in changes
fixed deldoc
fixed views fxns for new cushion first param format, fixed ping fxn