refactored parser into own file
added test for parsing with context
parsing with root context implemented
refactored layout logic into parser root context
moved html functions into beotf.core