Implement domain regexp according to the specification

http://tools.ietf.org/html/rfc1035
https://github.com/locomotivecms/engine/issues/988