Some design touchups.
Bug fix
Adding validator to a separate file
Testing memcached.