Use double dash (--) for long-name options instead of single dash (-)
Changed Web API syntax

Now it has two different API call: `file` and `thumb`.
Imported the first working version.