Implement support for modules on server. Fixes: #433