changed the request parsing behaviour.

when the provided parsing method fails, try to parse
as html and print an error
add a module for high level functions.

These will work autonomously without assumptions on the input. If there
is one, it will be checked.

add a function to get a sorted list of all tasks
Added function to change permissions

* added permission change and convenience functions
* changed requests to print result as html when failing