Filename parser

Hi,

I refactored parsing of file names - created separate file for it. I'm hoping it will be more easy in future to add a new naming variants. And I wrote some specs for parsing.

Also I have added a new naming variant: 1of12 or 1_of 12.