added api endpoints to unify project
cookie and auth header support for api
add jsonify import. fixes #42