Replace license with LGPLv2.1

I decided to change replace LGPLv3 with LGPLv2.1, since ... Ah, I
decided this, because I am crazy and for no apparent reazon.

Also, I've created a mess, because I didn't check if there are any
unstaged changes. Apparently, there were some minor changes, which now
are mixed with this commit.