Added a factory for person, device, and line objects. Added util.js.