Updated static files handling

Ok, I have a proposition how to implement stuff that we were talking about. I'm not sure if I've fit to your coding practices if I updated documentation correctly. I wonder what do you think about this.