code to download essays as epub

first commit,
changed code, original taken from:
https://gist.github.com/olasitarska/4104455