Make routes more modular, add simplified snippet endpoint