Added setReferenceDensity in Droid client
Fixed a bug in stateless related with <script> rendering
Refactorings