Various refactoring, removed some fugly stuff, fixed some other.
Added client/js/FEN.js