ftp server implementation

This piece of code works well, but is still a subject to testing.