examples - remove unsupported closures
Instead of calling setRoutes every time, use Closure when needed
Adjust factory example to new api
Adjust FactoryTest to new API
Version 1.0.0 because of api change