Added thumbnail generating (requires PIL)

Added thumbnail for user's avatar (uses generate_thumbnail). Makes thumbnail version of given image with given maximum width & height in uploads folder with filename based on original image name. If static=True thumbnail will be placed in static/thumbnails so it can be used without the need of a download controller.