Removed unnecessarily conversion to string
fixed servlet output encoding
moved backend code to directories following Maven convention