Refactor some serialization routines

git-svn-id: http://myrrix-recommender.googlecode.com/svn/trunk@549 0d189622-dca1-7e23-9e30-e8815eb7bd2f
More to make Java 6 work with Java 7-based SSL: https.protocols=TLSv1

git-svn-id: http://myrrix-recommender.googlecode.com/svn/trunk@550 0d189622-dca1-7e23-9e30-e8815eb7bd2f