Refined simpleindex and the way types are assigned to index-fields

Updated the way how fields of an index may be assigned a type. It is now done with objects acting as converter betweene js and lucene.
Adding custom fields is possible by extending BaseField with the desired conversions.