Added api for entities
Added an option to permit smtp in development mode