Write file only for persisted record
Change flow. Now we'll not save storage path into model, but we'll
generate it from model's id. Added ActiveRecord test environment for
test interaction with model.
Add callback instead of overriding save methods in model. Small fixes
Fix condition for file writing
Merge pull request #5 from gazay/master

Don't store the model id in the model itself.