Added ability to use center of map or geolocation for adding a marker
Added popup template