Two bug fixes, domain support

Fixed two bug - transferImage & snapshot.

Added support for all the domain/record related stuff. Had a hard time deciding what to call the records stuff as it's under domains but I went with just "record" as a tag.

Somehow I've managed to damage your tab style. Seems like you use two spaces? Sorry..