Recovery: improvements, bugfixes and type removal cleanups

* Use lock by default during recovery;
* Use proper API for sticking session to particular host;
* Bugfix for `TypeError` during `from_filename`;
* Debian package cleanups and parallel build;
* Type removal related cleanups.