Use relative link in templates

Better for local test
Set charset in templates
Proper use lknovel.rb as a lib
Add epub generating logic to app.rb

And need resources.