added div to album text
some structural adjustments
error message fixed and some minor adjustments
fixed line endings
singletonized the core and some minor adjustments
introduced namespaces
clean gallery url and some clean ups