Add two string helper functions: startswith() and endswith()

These two will be needed to implement the wildcard support.
Implement wildcard support
Make sure wildcards are used properly

Wildcards are supposed to be surrounded by at least one character before
and one after.

If that's not the case, don't even try to match, just return an empty
vector.
Fix the build

In C++, functions must be defined before they are used.
Merge pull request #7 from bochecha/master

Wildcard support