Implement LineItem::Parser module

This commit includes public interface, tests and code for
the parsing utility.