fix(mask): mask can now work with original jquery.maskedinput plugin

I move mask value validation to directive and update jquery.maskedinput plugin to lastest version. Plugin now compatible with jquery 1.9.
Furthermore I add test of optional part of mask, because it is important part of my changes