Initial NSec core library commit