Read raw post data if available

Signed-off-by: Tom Wright <tom@inflatablecookie.com>
Updated duration handling to allow selecting unit

Signed-off-by: Tom Wright <tom@inflatablecookie.com>