Jaring: handle request using action parameter.

* Add media directory configuration.