Sqlite::truncate(): Verify `sqlite_sequence` exists before _execute()

`sqlite_sequence` is a dynamic table that's only available when a table in
the database use an auto increment field.  For some cases, eg: databases that
exclusively use uuid for primary keys, this table won't exist and
truncate() call will fail with:

  Error: SQLSTATE[HY000]: General error: 1 no such table: sqlite_sequence
Reduce variable use/duplicate code.
Added/removed newlines to make the code more readable.
flushMethodCache not working if called before cacheMethod

When calling flushMethodCache it correctly empties self::$methodCache but if cacheMethod is called afterwards self::$methodCache gets populated with data from the Cache.
is_a() to instance of - completes PR 1669
Merge pull request #1672 from dereuromark/master-instance

is_a() to instance of - completes PR 1669
Replaced all is_a() calls with instanceof operator
Replaced true asserations with instanceOf asserations in test cases
Missed a couple instanceOf asserations
Merge pull request #1673 from bcrowe/hotfix-instanceof

Replaced all is_a() calls with instanceof operator
Resolves ticket #4100
Wrong signature.
Merge pull request #1674 from dereuromark/master-disabled-radio

Resolves ticket #4100
Merge pull request #1675 from bar/patch-1

Wrong signature.
App::import to App::uses
Merge pull request #1677 from dereuromark/master-cleanup

App::import to App::uses
Don't use comp. wrappers anymore.
correct order of params
Updated JavaScript casing and JsHelper references in doc blocks
Updated Controller:: doc block and ControllerMergeVarsTest::