Grand cimage refactoring

Squashed commit of the following:

commit 7a0f73b36b7e71127036d88f4d994683e5d61191
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Mon Apr 9 00:12:32 2012 +0400

    cimage CMake file fix

commit 0830903cec9a56ee217bf1b6a90939b0fbe00291
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Mon Apr 9 00:07:36 2012 +0400

    CMake file fix

commit b267e4e9ad50dd159e0db31cd38d22396272b012
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Sun Apr 8 23:59:45 2012 +0400

    unused members removed

commit 647b78d70cab9997074d2f7725ba26be0a9fc83c
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Sun Apr 8 23:55:05 2012 +0400

    CTIControl getDIBFromImage cleaned up

commit b8e04e2955a3f905f6e6f3ab4239d26b0784b215
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Sun Apr 8 23:34:21 2012 +0400

    more working

commit 41b5a747e9c2490824540c80e3e5cf90ffcb1613
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Sun Apr 8 22:45:11 2012 +0400

    New Rect method added

commit 7e1d5557e9f6c7bac8f17a01418bbc563a2878f6
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Sun Apr 8 21:48:03 2012 +0400

    more cimage cleanup

commit 1f1872f66edec3e8030903eb5da97fa0f17ec5bb
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Sun Apr 8 21:26:07 2012 +0400

    more CTIControl work

commit 766ea453b6ad10be40816f26691dacf4960f07ce
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Sun Apr 8 21:00:19 2012 +0400

    cimage work progress

commit f25e94ad67738aec2b207b5b702e8da52924a1d6
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Sun Apr 8 20:44:27 2012 +0400

    more cleanup

commit 12c76f5ae5ba29e81062491a49c82e006ffe6265
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Sun Apr 8 20:09:23 2012 +0400

    C api change

commit f00c3259f261d27fa2f75c4ec201ddc0452c7709
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Sun Apr 8 20:06:19 2012 +0400

    method renaming

commit 10a7686db107fdb79e6caeb1a20a86f55e9d7495
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Thu Jan 19 02:46:31 2012 +0400

    NetBSD test perl fix

commit 58eac9cce0d0b1703f406c43b931489bb1ea3c17
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Sun Apr 8 18:05:44 2012 +0400

    CTIControl refactoring

commit 26238ed10a21ef593d6b4d155d85c6d7694808be
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Sat Apr 7 20:18:24 2012 +0400

    Unused members removed

commit 43ac2449961d15219b913ae072a17133eb63329b
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Sat Apr 7 20:12:17 2012 +0400

    BitMask tests added

commit bdea8bea85715179ca7de98644363ce96a91b5d9
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Fri Apr 6 01:47:19 2012 +0400

    BitMask tests updated

commit df679ff02c54f4584bb5162e2985d8a5fa0a2c96
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Thu Apr 5 01:43:07 2012 +0400

    BItMask apply to DIB added

commit 412ed2783a0f2ea4531719a4e2558537da772ecb
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Thu Apr 5 00:57:30 2012 +0400

    BitMask test added

commit 977ce3ae02cd6c2d37884fa4738a574c64739c23
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Wed Apr 4 12:34:25 2012 +0400

    unused macro and functions removed from compat

commit dde46de9cc692a72b8dcdab905007c469f64621f
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Wed Apr 4 11:56:49 2012 +0400

    Win32 compile fix

commit 5897f4f754626d30752b350b9a664384b3312c21
Merge: 52006d1 c2e1415
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Fri Feb 17 09:55:44 2012 +0400

    Merge branch 'dev' of ssh://10.0.2.2/Users/serj/work/quneiform into dev

commit c2e1415ca137b586a70405498995b74001b11ed1
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Wed Apr 4 01:56:21 2012 +0400

    Missing include fix

commit 8a5524f26bb849be61be431f381cce9a64046ad0
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Wed Apr 4 01:52:15 2012 +0400

    Missing header fix

commit e8a847c5f83e02f1186b2a230e04173ee8b3ba19
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Wed Apr 4 01:44:21 2012 +0400

    missing header fix

commit 20ea0f939fde988658e6795d5586cd9db8ae8736
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Tue Apr 3 03:26:45 2012 +0400

    cf::BitMask class added and tests

commit 9c6bd73782e066217c773b525d8ed98f34c57f3a
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Tue Apr 3 01:18:00 2012 +0400

    method made static

commit bf25501cc94fbd8bb1542a4f3cef2c72a9a7c096
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Tue Apr 3 01:15:44 2012 +0400

    more cimage cleanup

commit 3ebed410dae729de7d59b4b3d28ac45cbfd71100
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Mon Apr 2 13:51:27 2012 +0400

    Unused CIMAGE api functions removed

commit 8eec3bde04e6af8f9e6092a4b37838570b3dfbf2
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Mon Apr 2 13:35:16 2012 +0400

    param renaming

commit 45387ce13e6c5151ba55557e388a1999d01e9b2e
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Mon Apr 2 13:25:37 2012 +0400

    Test update

commit 8aefcf7bdd9725536dfe7e9df66eec2f1c899006
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Mon Apr 2 13:22:39 2012 +0400

    copyFromSourceFrame tests added

commit 4b350f4d615c27b9b303d98530158ba7b890df9b
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Mon Apr 2 13:05:25 2012 +0400

    frame copy refactoring

commit fce204e14700cb4726f65de8f9ef5c8036a0e5b3
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Mon Apr 2 11:29:33 2012 +0400

    Debug dump function rewritten

commit ef2cb0b5bf97b778d5fa7ed344af14807e9f48ba
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Mon Apr 2 11:17:09 2012 +0400

    Doc and some tests added

commit e31ea09dad0f5c6571fb64cc6e6bb9cdc26e9123
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Sun Apr 1 10:33:36 2012 +0400

    copyToFrame new improvements

commit d459320a9f7a6bf78f5ad950810e137f6b0ed17c
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Sun Apr 1 10:17:34 2012 +0400

    copyToFrame fixes

commit d7e8ec27026e19a0ab97ea6b6b8393cd53cbae5f
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Sun Apr 1 02:09:33 2012 +0400

    unused member removed

commit e1f02ffcadfa1802002e5adf5cd3d7d98faca351
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Sun Apr 1 02:06:30 2012 +0400

    Bit mask refactoring

commit e2dc97008a446fd14276d4ab261ff2d3eb7316df
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Sat Mar 24 00:37:52 2012 +0400

    unused header removed

commit 666a7ad1ab721e7eeb543da8d9f85a721b7ff9d9
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Sat Mar 24 00:36:57 2012 +0400

    ctidefines.h include remove

commit 743d87fc368701b6338f3916df9115d75172fadd
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Sat Mar 24 00:34:38 2012 +0400

    Unused members removed from CTIControl

commit 939adcd30883b8271356af414e56cae60fa50843
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Sat Mar 24 00:31:01 2012 +0400

    Removed unnecessary includes

commit 6bd017345fc793cb2badc8fd893d1b11dcd6b147
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Sat Mar 24 00:21:07 2012 +0400

    cimage api cleanup

commit 9085705dff09591d922944dd03b7c1e33be36f74
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Sat Mar 24 00:19:26 2012 +0400

    Unused methods removed

commit cbc788a10dc6d00f823cb2d8c74156fcd98adc67
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Thu Mar 22 23:14:39 2012 +0400

    NEWS update

commit e16918f0919797793adbbdbc1e8578c2a71c44ae
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Thu Mar 22 23:12:24 2012 +0400

    --page-template option added

commit 8c48785cd54fd0b790597e9de7f7e5199c46b3d4
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Thu Mar 22 22:09:41 2012 +0400

    Puma setPageTemplate refactoring

commit 3d9041cd8cd45fae1541c07dc1985baebfadbc25
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Thu Mar 22 21:49:01 2012 +0400

    CIMAGE api change

commit f2683b420ae936990bb3512d537783e20e95feca
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Thu Mar 22 21:39:51 2012 +0400

    unused struct removed

commit 5b7c49c1fa398c45f3a9af5dc0ddacda6cd883c2
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Thu Mar 22 21:38:19 2012 +0400

    BitmapHandle usage

commit 3fbb96eb080d0d7370cd753fd19330697278ee2a
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Thu Mar 22 20:22:55 2012 +0400

    CTIControl class api rename

commit 203e4dc0a5ffdfd7ed7630291e11786e39cc392f
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Thu Mar 22 20:00:17 2012 +0400

    unused members removed rom CTIControl

commit 29adb3bf278881313c8fb8ea7f4db8f4f4b811da
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Thu Mar 22 19:53:29 2012 +0400

    CTIControl method removed

commit 758943c3b0c2ce9a14975222286f1d3570f221fe
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Thu Mar 22 19:43:59 2012 +0400

    unused method removed

commit afb28b32d27cffda8847dbe78b36d68fb77f43da
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Thu Mar 22 19:34:13 2012 +0400

    removed duplicated

commit e70ea291ffc66cb72aaa800f799edae226ed6f35
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Thu Mar 22 19:27:51 2012 +0400

    cimage api changes

commit 99876045942728250bcd24eec9e36ae9bffae12a
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Thu Mar 22 18:58:50 2012 +0400

    CIMAGE_ReadDIB signature change

commit a31a218d0eebe63a6d57794a4277d725f6db51e7
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Thu Mar 22 18:49:23 2012 +0400

    CIMAGE_ReadDIBCopy function added

commit d20e5999dfaf21a992788672f90cb9847af2bdd0
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Thu Mar 22 18:15:53 2012 +0400

    CTIControl::imageCopy function added

commit cc964669069a6b91df3a1df2efa4bb9834ff6cfb
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Wed Mar 21 23:02:58 2012 +0400

    Test update

commit 63f3b3505feb75c9189d477d3eed056cddeacd28
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Wed Mar 21 22:05:24 2012 +0400

    unused var removed

commit e2dc76921fa91c6c4fe8c405adcc2dbda80e7f67
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Wed Mar 21 22:03:59 2012 +0400

    unused method removed

commit ea882b1ac07a62aae3391dbe8ae6479b63cb83c3
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Wed Mar 21 22:02:57 2012 +0400

    removeMask refactoring

commit bbd942f7c0c5f13f210f22f6f9fd773a6f263222
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Wed Mar 21 21:43:28 2012 +0400

    more apply mask fixes

commit fa522b9c5c25bd00fe8b0ba974236cf6fc9f269a
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Wed Mar 21 21:39:25 2012 +0400

    light fixes

commit 5d303f968591910336c56e27ba016f5ea49b4bfe
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Wed Mar 21 21:36:24 2012 +0400

    applyMaskToDibLine refactoring

commit 5bfed7dbfdae03f2c84837e7ac5e51500764b3ea
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Wed Mar 21 20:57:26 2012 +0400

    var rename

commit 4879575376b5e328d2329cadbf1160b3208b2514
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Wed Mar 21 20:57:26 2012 +0400

    more mask fixes

commit d2aac80500713a219e146a929fadb3eab9ac20b7
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Wed Mar 21 20:47:54 2012 +0400

    Mask tests added

commit e7b907097c48e7d17dec77a1b426c468ede83f16
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Wed Mar 21 09:32:42 2012 +0400

    mask refactoring

commit 9f1ffa605fa353b1def7721e1f97c6b6b4801d54
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Wed Mar 21 09:04:23 2012 +0400

    basic mask tests added

commit d23f960056cdf1e116a55f027aa78458609c800f
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Tue Mar 20 20:37:30 2012 +0400

    read mask refactoring

commit 42138a7296ed82a8d370a6066a3a8148f7a7a334
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Tue Mar 20 17:22:20 2012 +0400

    Test added for cimage

commit 074351cc6f078775b284cf2724156f023332e94e
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Tue Mar 20 17:03:14 2012 +0400

    CTIControl::dumpImage fixes

commit f9aa63ea5673477a77b742bd135d1f76393f70c5
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Tue Mar 20 16:59:04 2012 +0400

    CTIControl test skeleton added

commit 94a8a1670c6a5e51a45f414ee177a0137cb4e264
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Tue Mar 20 15:28:35 2012 +0400

    CopyDIB refactoring

commit 066f90a4ffc6837195c0884e625fbd1f0396bf58
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Tue Mar 20 15:00:36 2012 +0400

    void CIMAGE_FreeBuffers() removed

commit 044ec5ab62da7da8d83c9cb6ca1198074c1c8413
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Tue Mar 20 14:57:49 2012 +0400

    one more cimage api cleanup

commit c39ad2cbf3bdf1f7a700bbe7bf2e8ebb474e125c
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Tue Mar 20 14:31:48 2012 +0400

    CIMAGE_FreeBuffers returns void

commit 2445c4aeb31cbf5b1c94a7dc501b363dd5e04b3f
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Tue Mar 20 14:12:04 2012 +0400

    More cimage api fixes

commit 15f88fd63717459af8f169c1500fbc3474dab27a
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Tue Mar 20 02:47:10 2012 +0400

    CIMAGE_DeleteImage renamed to CIMAGE_RemoveImage

commit 9faf3be0b7ddeed0cecc33f3a0322e317f809263
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Tue Mar 20 02:44:05 2012 +0400

    CIMAGE_AddImage function added

commit 4a08e68e8f7dadad5e2f966b353242aaac841e9c
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Tue Mar 20 02:11:13 2012 +0400

    CTImage api more cleanup

commit 95aadfbc2923e74b6ee66123549fc93ce7a72d44
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Mon Mar 19 03:03:29 2012 +0400

    CTIImage api clenup

commit 4468edc89239a8a2d8766a9cdbc5b66518ae6b1c
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Mon Mar 19 02:56:11 2012 +0400

    CImage api fixes

commit ea2c3ff5a6de0fa5d6fa09e0a11eb2307f0f9820
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Sat Mar 17 01:34:11 2012 +0400

    CTIImageList method renaming

commit 3daf0265a6558ebda6f2678acec5b67a160eede8
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Sat Mar 17 01:29:28 2012 +0400

    CTIMask api cleanup

commit e573a576aa32ed0c9299193fda04ac77ec6f57ba
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Sat Mar 17 01:19:29 2012 +0400

    typedefs removed

commit 40af8bbd3af1d22ab9832a4f5bb9492f790007b3
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Sat Mar 17 01:11:15 2012 +0400

    CTIMask using cf::Rect

commit 7eb131e5cfba4f9ab0f8bc545c62980d1bfccb2c
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Sat Mar 17 00:40:39 2012 +0400

    CTIImageList api cleanup

commit be4352b37d86b8244d7429ae3d884ecd8907298e
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Fri Mar 16 02:39:47 2012 +0400

    CTIImageList tests added

commit 1651955f0c399b9e9094682086127e915f8c4374
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Fri Mar 16 01:46:04 2012 +0400

    Constructor fix

commit 52006d15b8cfd01275e06e6789c583a04646a338
Merge: 2fc9b52 7d2f6ef
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Fri Feb 17 09:48:26 2012 +0400

    Merge branch 'dev' of ssh://10.0.2.2/Users/serj/work/quneiform into dev

commit 2fc9b52c088225366dcbb8f427949a2cf7552fd3
Merge: 829aedb f4f6634
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Fri Feb 17 09:40:32 2012 +0400

    Merge branch 'dev' of ssh://10.0.2.2/Users/serj/work/quneiform into dev

commit 829aedb329d66faac374f658561f8e69fd045296
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Thu Feb 16 06:48:07 2012 +0400

    OpenBSD segfault fix