New functionalities

Mask class, a static class with misc functions and some updates on the
custom adapter and async downloader.