[models] date_finished in Task can be blank
[api/views] Move request body access before any reads

Otherwise we get RawPostDataException: You cannot access body after
reading from request's data stream.
[api/views] Pretty print json output