added server application; moved original code to sub-directory