compile sprites on each Rails request when assets are compiled, too

So compilation is skipped in production. Be aware that the RailsCompiler
compiles ALL found sprites, but the SassExtensions build only the
sprites for which they are used. Do not rely on sprites you do not
mention in your styles.
create containing directory before writing sprite