Tests and minor improvement for the moduleRenderer

Made tests and changed the module renderer to "denormalize" attribute names when
adding them to directives (eg. camelCase -> camel-case). They are normalized
(using the $normalize method) when angular reads them again.