Implements upload and API

Added file upload and server side thumbnail and metadata generation.
However, metadata is hackish and doesn't get much information. Some more
clever pattern must be used here and code should be refactored.
Implemented dumb API that returns a list of specific type (audio, video,
image) media items present, along with some metadata.

Implemented client side ajax API request and media list display.