Split the viewer and Server

Updated the projects to split them correctly.
Also, fixed the encryption issues.