Fix for byte compile warnings

 - Declare functions and variables before used
 - Use cl-lib function name instead of cl functio name
 - remove needless quote

There are no byte compile warnings on Emacs 24.3 and Emacs Head.

Ping #52