initial commit of longform (with some details still unresolved pending vendor feedback); factored out helpers and parse functions