fix api addCustomLayer limitation

fix #763 
make the api addCustomLayer works with empty field, also allow for user defined fields list, allowing to bypass the 'title','description' current limitation