fix org chunk parsing to weed out lone newlines
refactor project context module to consolidate api