code refactoring

Hi Luc,

As you asked for a PR, you may find here a first one. Thank you for appreciating my work :-)
The new code integrate OpenLayer in the Gem for easy deploying and integration in your applications.

Still missing : 
- js support for multiples formats (GPX not yet implemented)
- documentation for each feature
- tests are buggy ...

Best regards,
Thomas