Removed preferences from EJB

need to rethink how to deal with preferences across multiple devices for
issue #17
added a file handler

halfway done with issue #17