End of day commit.
Cleaned up code in AutomaticScan class.
Tracked auto scan states.
Moved all scan state related code into the inner class of IMEAdapter class.
Handled scan state changes.
Set up skeleton for exposed scanning methods.
Wrote algorithm for scanNext and scanPrevious methods.
Implemented exposed scanning methods in IMEAdapter.
Merge pull request #98 from ericwan78/issue-91

Completed coding of exposed scanning methods.

Will close #91 when the code is incorporated into the framework.