Add InrouteFactory and console app, close #19