Put server functions to littleEye object, minor improvements to code