Provide another constructor for StaticMiddleware

It receives the path and prefix separately.
Allow MiddlewaresFactory#create to throw Exception