Ported to pure npm module. Config started. Tests added.